﻿<%@ Page Language="C#" MasterPageFile="~/SubForm.Master"  AutoEventWireup="true" CodeBehind="RiskProject.aspx.cs" Inherits="PreContractWeb.Report.RiskProject" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<iframe id="ifrmRpt" src="" height="0" width="0" frameborder="0" visible="false"></iframe>
<table width="98%" border="0" cellpadding="0" cellspacing="5" >
    <tr>
        <td>
          <table>        
            <tr>
                <td valign="top"><div id="divError" runat="server" style=" height:20;"></div></td> 
            </tr>
           </table>
           
           <asp:Panel ID="pnlContent" runat="server">
              <table>
                <tr>
                    <td>请选择报表季度：</td>
                    <td><asp:DropDownList ID="drYear" runat="server"></asp:DropDownList></td>
                    <td>&nbsp;
                        <asp:DropDownList ID="drQuater" runat="server">
                            <asp:ListItem Text="Q1" Value="1" ></asp:ListItem>
                            <asp:ListItem Text="Q2" Value="2"></asp:ListItem>                        
                            <asp:ListItem Text="Q3" Value="3"></asp:ListItem>    
                            <asp:ListItem Text="Q4" Value="4"></asp:ListItem>  
                         </asp:DropDownList></td>   
                     <td><asp:DropDownList ID="ddlAdjust" runat="server" AutoPostBack="false"></asp:DropDownList></td>
                     <td>&nbsp;<asp:Button ID="btnRun" runat="server" Text="运行报表(Run Report)"  Width="150px" CssClass="bgButton" ToolTip="Run Report" OnClick="btnRun_Click"  isvalidate="true" /></td>
                     <td>&nbsp;<asp:Button ID="btnExport" runat="server" Text="导出(Export To Excel)" Width="150px" CssClass="bgButton" ToolTip="Export To Excel File" />
                    </td>                
                </tr>
             </table>
          </asp:Panel>
        </td>
    </tr>
    <tr>
        <td>
             <table>
                <tr>
                    <td valign="top" >
                       <div id="divReport" runat="server" style="overflow:auto;"></div>
                    </td>
                </tr>
              </table>
       
        </td>
    </tr>
</table> 
           
    <script language="javascript">
    window.attachEvent("onresize",resizeFunc1); 
    resizeFunc1();
  function resizeFunc1()
    {
        var parentWin=window.parent;
        if (parentWin!=null)
        {
            var ofrm=parentWin.document.getElementById("main");
            if (ofrm!=null)
            {
            
                var sHeight=ofrm.document.body.offsetHeight;
                var sWidth=ofrm.document.body.offsetWidth;
                var divReport=document.getElementById("ctl00_ContentPlaceHolder1_divReport");
                if (divReport!=null)
                {
                    divReport.style.width=sWidth-220;
                    divReport.style.height=sHeight-190;
                }
            }
        }
    }   
    </script>

    


</asp:Content>